package com.example.demo.controller;


import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestNacos {

//    private static final Logger log = LoggerFactory.getLogger(TestNacos.class);

    @Value("${demonacos:}")
    private String demoNacos;

    @Value("${demo:}")
    private String demo;


    @RequestMapping("/getDemoNacos")
    public String getDemoNacos() {
        log.info("demoNacos========"+demoNacos);
        return demo+demoNacos;
    }
}
